using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Demo.Model;

/// <summary>
/// Summary description for CustomerController
/// </summary>
public class CustomerController
{
    [Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.ReadWrite)]
    public static void Delete(params int[] ids)
    {
        foreach (int id in ids)
        {
            Customer customer = Customer.Find(id);
            customer.Delete();
        }
    }
}
